package cn.csc.module.system.api.social.dto;

import cn.csc.framework.common.enums.UserTypeEnum;
import cn.csc.framework.common.validation.InEnum;
import cn.csc.module.system.enums.social.SocialTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("RPC 服务 - 取消绑定社交用户 Request DTO")
@Data
public class SocialUserUnbindReqDTO {

    @ApiModelProperty(value = "用户编号", required = true, example = "1024")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @ApiModelProperty(value = "用户类型", required = true, example = "1")
    @InEnum(UserTypeEnum.class)
    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    @ApiModelProperty(value = "社交平台的类型", required = true, example = "1")
    @InEnum(SocialTypeEnum.class)
    @NotNull(message = "社交平台的类型不能为空")
    private Integer socialType;

    @ApiModelProperty(value = "社交平台的 openid", required = true, example = "zsw")
    @NotEmpty(message = "社交平台的 openid 不能为空")
    private String openid;

}
